import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

Vue.prototype.toasts = (msg) => {
	uni.showToast({icon:"none",duration:2000,title:msg});
}

const base_url = "http://bjy.omglm.com/index.php/Home/";

Vue.prototype.ajax = (url,data)=>{
	uni.request({
		url : base_url+url,
		data:data.data,
		method:"POST",
		header: {
			'content-type':'application/x-www-form-urlencoded',
			'x-requested-with':'XMLHttpRequest',
		},
		success:data.success
	})
}

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
